package com.apes.fico.masterdata.gl.respository;

import com.apes.framework.jpa.repository.CustomRepository;
import com.apes.fico.masterdata.gl.model.AccountingAuxiliaryProject;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

/**
 * @program: apestech
 * @description:
 * @author: Chengxm
 * @create: 2018-12-21 10:15
 **/
public interface AccountingAuxiliaryProjectRepository extends CustomRepository<AccountingAuxiliaryProject, String> {
    @Query("select T from AccountingAuxiliaryProject T where id like %:value% or name like %:value%")
    Page<AccountingAuxiliaryProject> find(@Param("value") String value, Pageable pageable);
}
